<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
	<head>
	<title>Insert title here</title>
	</head>
	<body>
		<h1>部门列表</h1>
		<table border="1" cellpadding="0" cellspace="0" style="width:60%">
			<tr><th>部门ID</th><th>部门名称</th><th>部门地址</th><th>操作</th></tr>
			
			<c:forEach items="${depts}" var="d">
			<tr><td>${d.id}</td><td>${d.dept_name}</td><td>${d.dept_loc}</td><td><a href="removeDept.do?id=${d.id}" onclick="return confirm('确定删除${d.dept_name}吗?')">删除</a></td></tr>
			</c:forEach>
		</table>
	</body>
</html>